/** @format */

export * from './errorCode'

// 接口返回部分错误
export const TBERROR = {
  USER_PERMISSION_EXCEED_MAX_RIGHT_COUNT_IN_DAY: '今日领取达到上限，明日再来领取哦',
  COUPON_INVALID_OR_DELETED: '权益无效或者被删除，请联系商家',
  APPLY_OWNSELF_COUPON: '不能领取自己家店铺权益',
  APPLY_SINGLE_COUPON_COUNT_EXCEED_LIMIT: '请至卡券包删除无用权益再领取',
  NO_RIGHT_QUANTITY: '权益库存不足，请联系商家',
  ERRORA_3_567: '领取失败，为风险用户',
  'Invalid session': '订购应用已过期，请联系商家处理'
}

export const TRACK_EVENTS = {
  ENTER: 'wildwoodmg:app_entered',
  FIRST_ENTER: 'wildwoodmg:app_first_entered',
  JOIN_GAME: 'wildwoodmg:app_join',
  FINISH_GAME: 'wildwoodmg:app_finish_game',
  FINISH_TASK: 'wildwoodmg:app_finish_task',
  SHARE: 'wildwoodmg:app_share',
  BACK_HOME: 'wildwoodmg:app_back',
  EXIT: 'wildwoodmg:app_exit',
  OUT_SIDE: 'wildwoodmg:navigateToOutSide',
  HTTP_API: 'wildwoodmg:httpApi',
  EXCEPTION: 'wildwoodmg:exception',
  TOP_API: 'wildwoodmg:topApi',
  MEMBER_CHECK: 'wildwoodmg:memberCheck',
  DRAW_PRIZE: 'wildwoodmg:app_draw_prize',
  GET_AWARD: 'wildwoodmg:app_get_award'
}

// 领取奖品状态
export const DRAW_STATUS = {
  // 待领取
  WAITAWARD: 1,
  // 处理中
  PROCESSING: 2,
  // 领取成功
  SUCCESS: 3,
  // 领取失败
  FAIL: 4,
  // 已过期
  EXPIRED: -1,
  // 重新领取
  RETRY: 6
}

// 订单状态
export const TAOBAO_SUCCESS_ORDER_STATUS: string[] = [
  'WAIT_SELLER_SEND_GOODS',
  'SELLER_CONSIGNED_PART',
  'WAIT_BUYER_CONFIRM_GOODS',
  'TRADE_BUYER_SIGNED',
  'TRADE_FINISHED',
  'PAID_FORBID_CONSIGN'
]
export const TAOBAO_ORDER_STATUS: string[] = [
  'WAIT_SELLER_SEND_GOODS', //等待买家发货
  'SELLER_CONSIGNED_PART', //买家部分发货
  'WAIT_BUYER_CONFIRM_GOODS', //等待买家确认收货
  'TRADE_BUYER_SIGNED', //买家已签收，货到付款专用
  'TRADE_FINISHED', //交易成功
  'PAID_FORBID_CONSIGN', //拼团中订单或者发货强管控的订单，已付款但禁止发货
  'WAIT_BUYER_PAY', //代付款
  'TRADE_CLOSED', //付款以后用户退款成功，交易自动关闭
  'TRADE_CLOSED_BY_TAOBAO', //付款以前，卖家或买家主动关闭交易
  'PAID_FORBID_CONSIGN',
  'WAIT_BUYER_PAY',
  'TRADE_CLOSED',
  'TRADE_CLOSED_BY_TAOBAO',
  'PAY_PENDING',
  'WAIT_PRE_AUTH_CONFIRM'
]

export const ACTIVITY_OPEN_PRIZE_STATUS = {
  //开奖状态
  AWAIT: 1,
  OPENING: 2,
  SUCCESS: 3,
  FAIL: 4
}

// 活动状态
export enum ACTIVITY_STATUS {
  NORMAL = 1,
  DELETE = 2
}

// 奖品状态
export enum DELETE_STATUS {
  NORMAL = 1,
  DELETE = 2
}

//任务频率类型常量
export const TASK_RATE_TYPE = {
  FOREVER: 1,
  EVERYDAY: 2,
  NOLIMIT: 3
}

//任务状态
export const TASK_STATUS = {
  WAIT_DO: 1, // 未完成
  WAIT_RECEIVE: 2, // 待领取
  DONE: 3 // 已完成
}

// 奖品类型
export const PRIZE_TYPE = {
  ENAME: 1,
  CREDITS: 2,
  OBJECT: 3,
  THANKS: 5,
}

// 权益类型
export const BENEFIT_TYPE = {
  NORMAL: 1, // 普通权益
  MEMBER: 2 // 会员权益
}

// 奖品是否限制库存
export enum SWICH_TOCK {
  LIMIT = 1,
  NO_LIMIT = 2
}

//物流状态
export const SHIP_STATUS = {
  NO_ADDRESS: 1,
  NO_SHIP: 2,
  HAS_SHIP: 3
}

// 记录数据
export enum STAT_TYPE {
  INITE_SUCCESS,
  COMPLETE_GUIDE,
  BACK_HOME, //回到首页
}

export const appId = '3000000102348305'
// 商铺id 拼接vip链接用
export const sellerId = '654321'
// C端的APP NAME
export const C_APP_NAME: string = `promotioncenter-${appId}`

export const activityName = '淘宝直播摇签'

export const phone = '17300966513'

export const APP_KEY = '33618022'

export const MARK_STATUS = {
  FAIL: 0,
  SUCCESS: 1
}

export const BLESS_TYPE = {
  SCHOOL_WORK: 4,
  UNDERTAK: 1, // 事业
  HEALTH: 2, // 健康
  MARRIAGE: 3, // 姻缘
  WEALTH: 5 // 财富
}
// 普通文案签1，好友文案签2，IP签3，视频签4，语音签5）
export const BLESS_SUB_TYPE = {
  CONTENT: 1, // 内容签
  FRIEND: 2, // 好友文案签
  IP: 3, // IP签
  VIDEO: 4, // 视频签
  AUDIO: 5, // 语音签
  AWARD: 6 // 大奖签
}

// 签类型 -> 导入Excel进行匹配
export const BLESS_SUB_TXT = {
  ['健康签']: BLESS_TYPE.HEALTH,
  ['财富签']: BLESS_TYPE.WEALTH, // 事业
  ['学业签']: BLESS_TYPE.SCHOOL_WORK, // 健康
  ['姻缘签']: BLESS_TYPE.MARRIAGE, // 姻缘
  ['事业签']: BLESS_TYPE.UNDERTAK // 财富
}

// 求签求签假人数
export const INIT_JOIN_PEOPLE = 1000

// 游戏类型
export enum GAME_TYPE {
  DRAW_LOTS = 1,
  BLESSINGS,
  DRAW_RANK
}
// 排行榜福气值统计截止时间 测试 2023-12-20 15:00:00
export const RANK_VALUE_END = 1704031200000 // 1704031200000 // 2023.12.31 22点

// 福气值增加数量
export const RANK_ADD_VALUE = {
  DRAW_BLESS: 20, // 抽中福签，每次加 20
  SEND_BLESS: 23 // 送祝福，每次加 23
}
// 祝福信息审核状态
export const BLESS_STATUS = {
  WAITING: 1, // 待审核
  SUCCESS: 2 // 审核通过
}

// 最多一次性导出祝福数据为
export const MAX_EXPORT_NUM = 10000

export const EIGHT_HOURS = 60 * 60 * 8 * 1000
// 任务类型
export const TASK_TYPES = ['appointLive', 'shareForHelp', 'favorShop']

// 邀请人数
export const INVITE_USER_TIME = {
  '1': 2,
  '2': 3,
}
// 文案配置公用，统一取这个默认pageId
export const DEFALUT_PAGE_ID = 999999

// 活动时间内任务完成上限
export const Task_Complete_Limit = 80

// 排行榜最高福气值
export const MAX_RANK_VALUE = 77 * 20 + 77 * 23;
// 处理异常用户时间
export const MAX_ERROR_TIME = 1703951999000 // 2023-12-30 23:59:59
// 异常用户增加24小时
export const MAX_ERROR_ADD_TIME = 24 * 60 * 60 * 1000
// 异常用户达到次数限制
export const MAX_ERROR_RANK_VALUE = 66 * 20 + 66 * 23